package cn.edu.zafu.bigdata.yt;

public class ResizableCircle_yt implements Movable_yt, Resizable_yt {
    private double radius;

    public ResizableCircle_yt(double radius) {
        this.radius = radius;
    }

    @Override
    public void move() {
        System.out.println("The circle is moving.");
    }

    @Override
    public void stop() {
        System.out.println("The circle has stopped.");
    }

    @Override
    public void resize(double factor) {
        this.radius *= factor;
        System.out.println("The circle has been resized. New radius: " + this.radius);
    }

    public double getRadius() {
        return this.radius;
    }
}

